import '../Include.dart';
import '../test/Test.dart';

class MainPage extends StatefulWidget{
  @override
  State<StatefulWidget> createState() => _MainPageState();
}

class _MainPageState extends BaseBottomNavigationBarPageState<MainPage> {
  @override
  Color get themeColor => JvtdColor.THEME_COLOR;
  @override
  Color get unSelectColor => JvtdColor.THEME_UNSELECT_COLOR;

  @override
  bool get isDoubleClick => true;

  @override
  BottomNavigationBarType get type => BottomNavigationBarType.shifting;

  @override
  List<Widget> getWidgets() {
    return [
      TestPage(title: "1"),
      TestPage(title: "2"),
      TestPage(title: "3"),
      TestPage(title: "4"),
    ];
  }

  @override
  List<BottomNavigationBarItem> getBottomNavigationBarItems(BuildContext context) {
    return [
      barItem(iconData: Icons.widgets,title: "1"),
      barItem(iconData: Icons.add,title: "2"),
      barItem(iconData: Icons.title,title: "3"),
      barItem(iconData: Icons.ac_unit,title: "4"),
    ];
  }
}
